#include "stlwidget2.h"
#include <QLabel>
#include <QPixmap>
#include <QHBoxLayout>

StlWidget2::StlWidget2(QWidget *parent) : QWidget(parent)
{
    QLabel *canvas = new QLabel();
    canvas->setScaledContents(true);

    backgroundImage.load(":/images/splash.png");
    canvas->setPixmap(QPixmap::fromImage(backgroundImage));

    QHBoxLayout *layout = new QHBoxLayout(this);
    layout->addWidget(canvas);
}
